package com.woniu.aimd.service;

import com.woniu.aimd.pojo.DTO.NodeQueryDTO;
import com.woniu.aimd.pojo.DTO.StageInfo;
import com.woniu.aimd.pojo.entity.Node;

import java.util.List;

/**
 * @author zcnovice
 * @data 2025/6/10 上午12:53
 */
public interface NodeService {

    /**
     * @Description: 增加笔记
     * @return: boolean
     * @Author:  zcnovice
     * @date:  2025/6/10 上午12:27
     */
    Node insert(Node node);
    List<StageInfo> getNodeInfo(NodeQueryDTO nodeQueryInfo);

    boolean updateNodeInfo(Node node);

    Node getCurrentNode(String nodeId);

    boolean delete(String nodeId,Integer stage,String classId);

    //    @Cacheable(value = "nodeCache", key = "#nodeId")
    Node getCurrentNodeByTitle(String title,String classId);
}
